#ifndef Solution_H
#define Solution_H

#include <QWidget>
#include <QVector>
#include <QQueue>

// struct Node {
//     QPoint xy;
//     int val;
//     Node * next;

//     Node(QPoint _xy, int _val) : xy(_xy), val(_val),next(NULL) {}
// };

class Solution : public QObject
{
    Q_OBJECT
public:
    explicit Solution(QWidget *parent = nullptr);
    void get_route1(int be, int en, QVector<int>& path, QVector<QVector<int>>& allPaths);
    void get_route(QVector<QVector<int>>& allPaths);
    void shortest_r(int be, int en, QVector<QVector<int>>& allPaths);
    void shortest(QVector<QVector<int>>& allPaths);
signals:
};
// extern Solution s1;
#endif // Solution_H
